package cn.itsource.system.domain;

import cn.itsource.blog.domain.ArticleType;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Menu {
    private Long id;
    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;

    private String parentMenuName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY) //类型树最后一级没有数据就不显示
    private List<Menu> children = new ArrayList<>();
}
